package com.bang.springcloud.client;

import com.bang.springcloud.provider.api.UserFeignApi;
import com.bang.springcloud.provider.domain.dto.UserDto;
import com.bang.springcloud.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: UserFeignClient
 * @author: BANG
 * @Date: 2019/12/03 14:27
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
@Slf4j
@RestController
public class UserFeignClient implements UserFeignApi {

    @Autowired
    private UserService userService;

    @Override
    public UserDto get(Long userId) {
        return userService.get(userId);
    }

}
